#include <bits.stdc++.h>
using namespace std;

int arr[100000] = {0};

int main() {
	int n = 0, sum = 0;
	cin >> n;
	for (int i = 0; i < n; ++i) {
		cin >> arr[i];
	}
	sort(arr, arr + n);
	for (int i = 0; i<n; ++i)
	{
		
	}
		return 0;
}